package org.fangzz.cameramgr.cameramonitor.service.impl;

import com.google.common.collect.Lists;
import org.fangzz.cameramgr.cameramonitor.model.Province;
import org.fangzz.cameramgr.cameramonitor.repository.ProvinceRepository;
import org.fangzz.cameramgr.cameramonitor.service.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * created by XxChen 2018/6/22
 */


@Service
public class ProvinceServiceImpl implements ProvinceService {

    @Autowired
    ProvinceRepository provinceRepository;

    @Override
    public List<Province> findAll() {
        return Lists.newArrayList(provinceRepository.findAll());
    }
}
